<script lang="ts" setup>
import transformer from '../../../../assets/bi/icon-transformer.png'
import  stored from '../../../../assets/bi/icon-stored.png'
import photovoltaic from '../../../../assets/bi/icon-photovoltaic.png'

const props = defineProps({
  coreSubStatData: {
    type: Object,
    default: () => ({})
  }
})
</script>

<template>
  <div class="map-foot-view">
    <div v-for="(item,index) in coreSubStatData" :key="index" class="item-view">
      <img :src="index == '0'? transformer : index == '1'? stored : photovoltaic" />
      <div>
        <div>{{ item.value }}</div>
        <div>{{ item.label }}({{ item.unit }})</div>
      </div>
    </div>
  </div>
</template>

<style lang="less" scoped>
.map-foot-view {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-around;
  .item-view {
    display: flex;
    align-items: center;
    .info-view {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
      margin-left: 8px;
      .info-title {
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 10px;
      }


      .info-decr {
        font-size: 14px;
      }
    }
  }
}
</style>